package com.shop.cloud.mall.common.feign;

import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.constant.ServiceNameConstants;
import com.shop.cloud.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author
 */
@FeignClient(contextId = "feignShardingDataBaseService", value = ServiceNameConstants.MALL_ADMIN_SERVICE)
public interface FeignShardingDataBaseService {

	/**
	 * 获取分库名
	 * @param
	 * @return
	 */
	@GetMapping("/shardingdatabase/properties/dbname")
	R<String> getShardingDataBasePropertiesDbname(@RequestHeader(SecurityConstants.FROM) String from);
}
